import java.util.Scanner;

public class StringDemo5 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入字符串");
        String str=sc.next();

        //1.统计
        int bigCount=0;
        int smallCount=0;
        int numberCount=0;
        for(int i=0;i<str.length();i++){
            if(str.charAt(i)>'a'&&str.charAt(i)<'z'){
                smallCount++;
            }else if(str.charAt(i)>'A'&&str.charAt(i)<'Z'){
                bigCount++;
            }else{
                numberCount++;
            }
        }
        System.out.println("大写字母有"+bigCount+"小写字母有"+smallCount+"数字有"+numberCount);
    }
}
